package com.itheima.c;

import java.io.FileWriter;
import java.io.IOException;

public class Test {
    public static void main(String[] args) {
        try (
            FileWriter fw=new FileWriter("E:/a.txt");
            ){
            fw.write("登鹳雀楼");
            fw.write("\r\n");
            fw.write("王之涣");
            fw.write("\r\n");
            fw.write("白日依山尽");
            fw.write("\r\n");
            fw.write("黄河入海流");
            fw.write("\r\n");
            fw.write("欲穷千里目");
            fw.write("\r\n");
            fw.write("更上一层楼");
            fw.write("\r\n");
            } catch (IOException e) {
            e.printStackTrace();
            }
    }
}
